package com.example.health_life;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @GetMapping("/hello")   //网址里面不允许有动词出现，只能有名词且需与对应的数据表对应
    public List<String> test() {
        return List.of("Hello", "World");
        //JSON 数组
    }
}
